package com.iye.puretennis.custom;

import android.app.Activity;
import android.view.LayoutInflater;
import android.view.View;
import android.widget.ImageButton;
import android.widget.PopupWindow;
import com.iye.puretennis.R;

/**
 * Created with IntelliJ IDEA.
 * User: jing wu
 * Date: 2014/12/10
 * Time: 15:56
 */
public class MenuWindow extends PopupWindow {

    private ImageButton button1;

    private ImageButton button2;

    public MenuWindow(Activity activity,int layoutId) {

//        super(activity);
//
//        LayoutInflater inflater = activity.getLayoutInflater().inflate(layoutId,null);
//        View mainView = inflater.inflate(R.layout.appointment_menu, null);
//        this.setWidth(width);
//        this.setHeight(ActionBar.LayoutParams.WRAP_CONTENT);
//        ColorDrawable dw = new ColorDrawable(0xb0000000);
//        btnAccept = (Button) mainView.findViewById(R.id.accept_menu);
//        btnReject = (Button) mainView.findViewById(R.id.reject_menu);
//        btnDetails = (Button) mainView.findViewById(R.id.details_delete_menu);
//        View.OnClickListener buttonClickListener = new View.OnClickListener() {
//            @Override
//            public void onClick(View view) {
//                int viewId = view.getId();
//                dismiss();
//
//            }
//        };
//        btnAccept.setOnClickListener(buttonClickListener);
//        btnReject.setOnClickListener(buttonClickListener);
//        btnDetails.setOnClickListener(buttonClickListener);
//
//        //设置SelectPicPopupWindow弹出窗体的背景
//        this.setBackgroundDrawable(dw);
//        this.setContentView(mainView);
//        this.setFocusable(true);
    }


}
